package app.fugema.shop.main.home.model;

import com.base.common.view.adapter.bean.HeaderBean;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class HomeBannerBean extends HeaderBean {

    /**
     * code : 0
     * data : [{"channel":"","id":0,"pic":"","remark":"","sort":"","state":0,"targetId":0,"type":0}]
     * msg :
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         *       channel	渠道:Android、IOS、WeChat	string
         *        id	id	integer(int64)
         *        pic	图片地址	string
         *        remark	备注	string
         *        sort	顺序	string
         *        state	状态0未使用1使用	integer(int32)
         *        targetId	目标id	integer(int64)
         *        type	类型：1商城2秒杀3宠物	integer(int32)
         */

        private String channel;
        private int id;
        private String pic;
        private String remark;
        private String sort;
        @SerializedName("state")
        private int stateX;
        private int targetId;//目标id
        private int type; //类型：1商城2秒杀3宠物

        public String getChannel() {
            return channel;
        }

        public void setChannel(String channel) {
            this.channel = channel;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public int getStateX() {
            return stateX;
        }

        public void setStateX(int stateX) {
            this.stateX = stateX;
        }

        public int getTargetId() {
            return targetId;
        }

        public void setTargetId(int targetId) {
            this.targetId = targetId;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }
}
